package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.AnnualBonusBeanMapper;
import com.billing.model.entity.TAnnualBonus;
import com.billing.service.AnnualBonusService;
@Service
public class AnnualBonusServiceImpl implements AnnualBonusService {

	@Resource
	private AnnualBonusBeanMapper annualBonusBeanMapper;
	
	@Override
	public List<TAnnualBonus> getTAnnualBonusList(String id, String year,
			int currentPage, int pageSize) {
		return annualBonusBeanMapper.getTAnnualBonusList(id, year, currentPage, pageSize);
	}

	@Override
	public int selectTAnnualBonusNum(String id, String year) {
		return annualBonusBeanMapper.selectTAnnualBonusNum(id, year);
	}

	@Override
	public int deleteTAnnualBonusByid(int id) {
		return annualBonusBeanMapper.deleteTAnnualBonusByid(id);
	}

	@Override
	public int insertTAnnualBonus(TAnnualBonus annua) {
		return annualBonusBeanMapper.insertTAnnualBonus(annua);
	}

	@Override
	public TAnnualBonus getTAnnualBonusByid(String id) {
		return annualBonusBeanMapper.getTAnnualBonusByid(id);
	}

	@Override
	public int updateTAnnualBonus(TAnnualBonus annua) {
		return annualBonusBeanMapper.updateTAnnualBonus(annua);
	}

	@Override
	public List<TAnnualBonus> getTAnnualBonusBytaxableTimeList(
			String taxableTime) {
		return annualBonusBeanMapper.getTAnnualBonusBytaxableTimeList(taxableTime);
	}

}
